Stateful vs Stateless Explained by Example